#ifndef _VC70CLIENTSESSION_H_
#define _VC70CLIENTSESSION_H_

#include "../RMSLib/clientinterface.h"

#define MAX_CAMERA 8

struct camera_info
{
	CString m_ip;
	unsigned short m_nPort;

	char m_szDate[50];
	char m_szTime[50];

	bool m_bActive;
};

class CVC70Session : public ClientAccess
{
	friend class CVC70SocketThread;
//	friend class CWaveOut;
public:
	int GetPosSlider();
	camera_info m_camera;

	CVC70Session();
	~CVC70Session();

	void setClient(ClientInterface* pclient);

	void Init();
	void Close();

	void SetCameraInfo(CInfo& info);
	
	void SetFrameRate(int nFrameRate);
	int GetFrameRate();
	int GetCurrentFrameRate();
	int GetBirate();
	int GetMarker();

	void SetTimeMark(const TimeMark& timeStart, const TimeMark& timeEnd);
#ifdef _JNC_REC_
	void SetTimeMark1(const TimeMark& timeFrom, const TimeMark& timeTo);
	void SetGetListFlag(BOOL flag);
#endif //def _JNC_REC_

	int Connect(BOOL bStored);
	int Disconnect();

	void SetPriority();

	CVC70SocketThread m_socket;
	CRMSWaveClientSocket m_waveSocket;
};

#endif // ndef _VC70CLIENTSESSION_H_
